package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * 问卷调查答案<br>
 * @author yangh
 */
@Entity
@Table(name = "survey_answer")
public class SurveyAnswer extends TXBYObject
{
	private Integer uid;           // 填写人uid
	@Column(name="survey_id")@JSONField(name = "survey_id")
	private Integer surveyId;      // 问卷id
	@Column(name="quest_id")@JSONField(name = "quest_id")
	private Integer questId;       // 选项id
	private String content;        // 答案内容,如果是单选多选直接用选项的id，填空题使用内容，打分题使用分数1-5
	@Column(name="doctor_uid")@JSONField(name = "doctor_uid")
	private Integer doctorUid;     // 医生uid
	private Integer score;         // 得分
	@Column(name="visit_id")@JSONField(name = "visit_id")
	private Integer visitId;       // 问卷的生成id
	private Integer type;          // 答案类型
	
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getVisitId() {
		return visitId;
	}

	public void setVisitId(Integer visitId) {
		this.visitId = visitId;
	}

	public SurveyAnswer() {
		super();
		this.score = 0;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getDoctorUid() {
		return doctorUid;
	}

	public void setDoctorUid(Integer doctorUid) {
		this.doctorUid = doctorUid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getUid() {
		return uid;
	}
	
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	
	public Integer getSurveyId() {
		return surveyId;
	}
	
	public void setSurveyId(Integer surveyId) {
		this.surveyId = surveyId;
	}
	
	public Integer getQuestId() {
		return questId;
	}
	
	public void setQuestId(Integer questId) {
		this.questId = questId;
	}
	
	public static void main(String[] args) {
		System.out.println(System.currentTimeMillis());
	}
}